@charset "UTF-8";
/*
 * 表单相关样式
 */
form {
    background-color: #fff;
    padding: 0 20px;
    border-radius: 5px;
    width: 400px;
}
form p {
    margin: 20px 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
}

/* 标题 */
form .title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
form .title span {
    font-size: 25px;
    font-weight: bold;
}
form .title a {
    font-size: 14px;
    color: #ff0000;
    font-weight: 600;
}
/* 标题 end */

/* 提示框 */
form .tips {
	display: flex;
    width: 360px;
    background-color: #fdf8d0;
    padding: 5px;
    font-size: 14px;
    align-items: center;
}
form .tips img {
    margin-right: 5px;
}
/* 提示框end */

/* 输入框 */
form input {
    border: 1px solid #ccc;
    flex: 1;
    height: 40px;
    padding: 0 10px;
    border-radius: 5px;
}
form input:focus {
    border-color: var(--color-primary);
   	outline-color: var(--color-primary);
}

/* 文件输入框 */
form p.file label {
	display: block;
	width: 100px;
	height: 100px;
	border: 1px solid var(--color-grey);
	border-radius: 5px;
	cursor: pointer;
	line-height: 98px;
	color: #757575;
	position: relative;
	overflow: hidden;
}
form p.file label span {
    display: none;
    position: relative;
    transition: .3s;
}
form p.file label:hover span {
	display: block;
	z-index: 1;
	background: rgba(0, 0, 0, 0.1);
	color: #fff;
}
form p.file img {
    width: 100px;
    height: 100px;
    position: absolute;
    top: 0;
    left: 0;
}
form p.file input[type='file'] {
	display: none;
}
/* 文件输入框 end */

/* 单选框 */
form input[type='radio'] {
    height: 18px;
    width: 18px;
    flex: none;
    margin-right: 5px;
    cursor: pointer;
    vertical-align: middle;
}
form label[for] {
	cursor: pointer;
	line-height: 18px;
}
/* 单选框 end */

/* 数字输入框 */
input[type="number"] {
	padding-right: 0;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
	height: 40px;
	width: 40px;
	cursor: pointer;
	padding: 0 5px;
}
/* 数字输入框 end */

/* 验证码输入框 */
form .captcha input {
	max-width: 120px;
	min-width: 110px;
}
form .captcha img {
	height: 40px;
	margin-left: 10px;
	cursor: pointer;
}
/* 验证码输入框 end */